package com.teamone.etl.dataruleengine.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.Date;

/**
 * (RuleEngine)表实体类
 *
 * @author makejava
 * @since 2021-01-12 21:04:40
 */
public class RuleEngine extends Model<RuleEngine> {
    /**序号
     *
     */
    private Integer id;
    /**规则名称
     *
     */
    private String name;
    /**规则类型id
     *
     */
    private Integer ruleTypeId;
    /**代码类型,1java,2sql
     *
     */
    private Integer codeTypeId;
    /**类/函数名称
     *
     */
    private String functionName;
    /**编写代码
     *
     */
    private String codes;
    /**是否停用，1禁用,0启用,-1假删除
     *
     */
    private Integer isDisable;
    /**创建时间
     *
     */
    private Date createTime;
    /**修改时间
     *
     */
    private Date updateTime;


    @Transient
    private String ruleTypeName;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getRuleTypeId() {
        return ruleTypeId;
    }

    public void setRuleTypeId(Integer ruleTypeId) {
        this.ruleTypeId = ruleTypeId;
    }

    public Integer getCodeTypeId() {
        return codeTypeId;
    }

    public void setCodeTypeId(Integer codeTypeId) {
        this.codeTypeId = codeTypeId;
    }

    public String getFunctionName() {
        return functionName;
    }

    public void setFunctionName(String functionName) {
        this.functionName = functionName;
    }

    public String getCodes() {
        return codes;
    }

    public void setCodes(String codes) {
        this.codes = codes;
    }

    public Integer getIsDisable() {
        return isDisable;
    }

    public void setIsDisable(Integer isDisable) {
        this.isDisable = isDisable;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRuleTypeName() {
        return ruleTypeName;
    }

    public void setRuleTypeName(String ruleTypeName) {
        this.ruleTypeName = ruleTypeName;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}